// g++ ncurses-usage.cpp -o main -lncurses
#include <iostream>
#include <ncurses.h>

int main()
{
  initscr();

  WINDOW* window = newwin(10, 30, 0, 0);

  while(true) {
    // print text
    mvwprintw(window, 1, 1, "Hello world");

    wrefresh(window);// flush window
  }

  int ch = getch();

  endwin();

  return 0;
}
